package com.avic.map.service;


import com.avic.map.dal.condition.PageQueryMapSoldierCondition;
import com.avic.map.dal.condition.PageQuerySingleSoldierCondition;
import com.avic.map.dal.model.SingleSoldierResource;

import java.util.List;

/**
 * 单兵资源
 *
 * @author: huangsheng
 * @date: 2018/9/3 下午3:29
 */
public interface SingleSoldierResourceService {

    /**
     * 分页查询列表
     *
     * @author: huangsheng
     * @date: 2018/9/3 下午3:20
     */
    List<SingleSoldierResource> itemList(PageQuerySingleSoldierCondition pageQuerySingleSoldierCondition);

    /**
     * 数据总数
     *
     * @author: huangsheng
     * @date: 2018/9/3 下午3:20
     */
    int queryRecordsTotal(PageQuerySingleSoldierCondition pageQuerySingleSoldierCondition);

    /**
     * 新增单兵资源
     *
     * @return 创建数据ID
     */
    int create(SingleSoldierResource singleSoldier);

    /**
     * 修改单兵资源
     *
     * @author: huangsheng
     * @date: 2018/9/3 下午3:23
     */
    void update(SingleSoldierResource singleSoldier);

    /**
     * 删除单兵资源
     *
     * @author: huangsheng
     * @date: 2018/9/3 下午3:24
     */
    void delete(int id);


    /**
     * 更新单兵数据
     *
     * @param soldierNumber 单兵编号
     * @param soldierState  单兵状态
     */
    void updateSoldierState(String soldierNumber, int soldierState);

    List<SingleSoldierResource> queryAllSoldier();

    SingleSoldierResource getSingleSoldierResourceByNumber(String Number);

    List<SingleSoldierResource> mapSoldierRecords(PageQueryMapSoldierCondition pageQueryMapSoldierCondition);

    int mapSoldierRecordsTotal(PageQueryMapSoldierCondition pageQueryMapSoldierCondition);

    List<SingleSoldierResource> querySoldierTreeRecords(int equipmentType);
}
